package org.jeecg.modules.wmhb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import org.jeecg.common.constant.UserConstant;
import org.jeecg.modules.wmhb.entity.*;
import org.jeecg.modules.wmhb.mapper.WmProductBomMapper;
import org.jeecg.modules.wmhb.service.IWmProductBomService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;

/**
 * @Description: 物料产品BOM表
 * @Author: jeecg-boot
 * @Date:   2024-08-31
 * @Version: V1.0
 */
@Service
public class WmProductBomServiceImpl extends ServiceImpl<WmProductBomMapper, WmProductBom> implements IWmProductBomService {


    @Override
    public List<WmProductBom> queryChildrenByWmItemId(String wmItemId){
        LambdaQueryWrapper<WmProductBom> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(WmProductBom::getWmItemId, wmItemId);
        return list(queryWrapper);
    };
}
